import React, { Component } from 'react'

class Item extends Component {
    render() { 
        let { item } = this.props
        return (
            <div className='item'>
                <img src={item.img} alt='' />
                <h4>{item.title}</h4>
                <p>{item.word}</p>
                <button>{item.btn === 1 ? '购票' : '预售'}</button>
            </div>
        )
    }
}
 
export default Item;